# Index: OSLib/!OsLib/Tools/AMUmakefile	20040225
#===================================================================
#
DIR		= ${MAKEFILEDIR}
COPYFLAGS   	= A~C~DFLN~P~Q~R~S~T~V

RM    	    	= rm -nq
MAKE   	    	= amu -desktop

# build all tools
all:  stage2 stage1
      @echo


# build tools which don't depend on OSLib
stage1:
ifndef APCS
	$(error APCS mode is undefined)
endif
	${MAKE} -f ${DIR}.bison.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.DefMod2.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.ReduceAOF.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.Rm.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.ToLower.AMUmakefile all APCS=${APCS}

# build tools which depend on OSLib
stage2:
ifndef APCS
	$(error APCS mode is undefined)
endif
   	${MAKE} -f ${DIR}.BindHelp.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.IndexHelp.AMUmakefile all APCS=${APCS}
   	${MAKE} -f ${DIR}.StripDepends.AMUmakefile all APCS=${APCS}

clean:
   	${MAKE} -f ${DIR}.BindHelp.AMUmakefile clean
   	${MAKE} -f ${DIR}.DefMod2.AMUmakefile clean
   	${MAKE} -f ${DIR}.IndexHelp.AMUmakefile clean
   	${MAKE} -f ${DIR}.ReduceAOF.AMUmakefile clean
   	${MAKE} -f ${DIR}.Rm.AMUmakefile clean
   	${MAKE} -f ${DIR}.StripDepends.AMUmakefile clean
   	${MAKE} -f ${DIR}.bison.AMUmakefile clean
      	${MAKE} -f ${DIR}.ToLower.AMUmakefile clean

distclean:
   	${MAKE} -f ${DIR}.BindHelp.AMUmakefile distclean
   	${MAKE} -f ${DIR}.DefMod2.AMUmakefile distclean
   	${MAKE} -f ${DIR}.IndexHelp.AMUmakefile distclean
   	${MAKE} -f ${DIR}.ReduceAOF.AMUmakefile distclean
   	${MAKE} -f ${DIR}.Rm.AMUmakefile distclean
   	${MAKE} -f ${DIR}.StripDepends.AMUmakefile distclean
   	${MAKE} -f ${DIR}.bison.AMUmakefile distclean
      	${MAKE} -f ${DIR}.ToLower.AMUmakefile distclean
